home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- class AtomicLongLockImpl extends AtomicLong {
- private volatile long value;
-
- protected AtomicLongLockImpl(long var1) {
- this.value = var1;
- }
-
- public long get() {
- return this.value;
- }
-
- public synchronized boolean attemptSet(long var1) {
- this.value = var1;
- return true;
- }
-
- public synchronized boolean attemptUpdate(long var1, long var3) {
- if (this.value == var1) {
- this.value = var3;
- return true;
- } else {
- return false;
- }
- }
-
- public synchronized boolean attemptIncrememt() {
- ++this.value;
- return true;
- }
-
- public synchronized boolean attemptAdd(long var1) {
- this.value += var1;
- return true;
- }
- }
-